<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Expert extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected  $guarded=['id','created_at','updated_at','deleted_at'];
    public function lecture(){
        return $this->belongsToMany(Video::class,'lectures','expert_id','video_id');

    }
}
